package com.ton.system.vo;

import com.ton.common.entity.SystemUser;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.factory.Mappers;
@Mapper
public interface BeanConverter {
    BeanConverter MAPPER = Mappers.getMapper(BeanConverter.class);
     /**
       将Employee 转换为登录用户 VO
     */

     @Mapping(source = "loginName",target = "name")
     SystemUser emp2LoginVO (LoginUserVo loginUser);


//     @Mapping(source="records",target="rows")
//     PageVo page2vo(Page list);


}
